/*
Sader engine framework
(c) Rachel J. Morris
MIT License
www.moosader.com
*/

#include "ManagerMap.h"

namespace sader
{

void ManagerMap::LoadAssets( std::vector<std::string> assetList, Texture& texture )
{
    // Use parent class' functionality to load in the assets.
    ManagerTemplate<Map>::LoadAssetsFromFile( assetList );

    // Set their texture to the level tileset
    // ToDo: Make this more general later.
    for ( std::vector<Map>::iterator map = m_items.begin();
            map != m_items.end();
            ++map )
    {
        map->SetGeometryTexture( texture );
    }
}

}
